package cn.dapeng.designPatterns.chain.t02;

public class WidthProcessor implements Processor {
    @Override
    public boolean doFilter(Product product, ProcessorChain chain) {
        if (product.width >= 30 && product.width <= 60) {
            System.out.println("产品宽度检验通过！");
            return chain.doFilter(product, chain);
        }
        System.out.println("产品宽度未检验通过！");
        return false;
    }
}
